package com.douyang.base.client;




import com.douyang.base.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "auth-api")
public interface UserClient {
    @PostMapping("/user/userRole/getUserRole")
    public Result<List<String>> getUserRole(@RequestBody Long userId);

    @GetMapping("/user/userVideoLiked/getVideoLikeCount/{videoId}")
    public Result<Integer> getVideoLikeCount(@PathVariable("videoId") Long videoId);

    @GetMapping("/user/userVideoLiked/getUserLikedVideoIds/{userId}")
    public Result<List<Long>> getUserLikedVideoIds(@PathVariable("userId") Long userId);
}
